home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 118 < prev    next >
Text File  |  1996-08-06  |  1KB  |  33 lines

  1. Newsgroups: comp.std.c
  2. Path: in2.uu.net!jyacc!usenet
  3. From: jtrigg@marks.jyacc.com (Jim Trigg)
  4. Subject: Re: Help, best way to compare doubles
  5. In-Reply-To: tanmoy@qcd.lanl.gov's message of 15 Jan 1996 16:13:22 GMT
  6. X-Nntp-Posting-Host: marks
  7. Message-ID: <9livibg6p4.fsf@marks.jyacc.com>
  8. Sender: jtrigg@marks.jyacc.com
  9. Organization: JYACC, Inc. 
  10. X-Newsreader: Gnus v5.1
  11. References: <4d1k09$aqq@mercury.IntNet.net> <4dbos6$o7q@umbc9.umbc.edu>
  12.     <4ddev4$1vg@stingray.mcnc.org> <TANMOY.96Jan15091322@qcd.lanl.gov>
  13. Date: Tue, 16 Jan 1996 21:39:35 GMT
  14.  
  15. In article <TANMOY.96Jan15091322@qcd.lanl.gov> tanmoy@qcd.lanl.gov
  16. (Tanmoy Bhattacharya) writes:
  17.  
  18. > In article <4ddev4$1vg@stingray.mcnc.org> coats@mcnc.org (Carlie
  19. > Coats) writes: 
  20. > <snip>
  21. >    or (equvalently, but in decently-efficient C):
  22.  
  23. > ...though undefined according to the ANSI C standard...
  24.  
  25. >    ( t = a - b )*t < esquared * ( a*a + b*b  + delta )
  26.  
  27. I believe a standard-compliant version would be:
  28.  
  29.     ( t = a - b , t * t) < esquared * ( a * a + b * b + delta )
  30.  
  31. Just a Thought,
  32. Jim Trigg
  33.